package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsAttachment;
import com.yidu.utils.Page;
import com.yidu.utils.Pages;
import com.yidu.utils.Time;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AtsAttachmentMapper {
    int deleteByPrimaryKey(Integer attachId);

    int insert(AtsAttachment record);

    int insertSelective(AtsAttachment record);

    AtsAttachment selectByPrimaryKey(Integer attachId);

    int updateByPrimaryKeySelective(AtsAttachment record);

    int updateByPrimaryKey(AtsAttachment record);

    List<AtsAttachment> findAll(AtsAttachment record);

    AtsAttachment findEmpById (Integer attachId);

    AtsAttachment selectEmpByid(Integer attachId);



       /**
     * 查询所有
     * @param time 查询时间
     * @param page 查询页码
     * @param atsAttachment 查询条件
     * @return 附件表数据
     */
    List<AtsAttachment> selectAll(@Param("time") Time time, @Param("page") Pages page, @Param("atsAttachment")AtsAttachment atsAttachment);

    /**
     * 查询总行数
     * @param atsAttachment
     * @return
     */
    int selectCount(@Param("atsAttachment") AtsAttachment atsAttachment,@Param("time") Time time);


    /**
     * 查询所有审核完成数据
     * @param atsAttachment 查询条件
     * @param page 查询页码
     * @param time 查询时间
     * @return 附件表数据
     */
    List<AtsAttachment> selectCheckAll(@Param("time") Time time,@Param("page")Pages page,@Param("atsAttachment")AtsAttachment atsAttachment);

    /**
     * 查询审核完成总行数
     * @param atsAttachment
     * @return
     */
    int selectCheckCount(@Param("atsAttachment") AtsAttachment atsAttachment,@Param("time") Time time);

    /**
     * 查询所有审核完成数据
     * @param atsAttachment 查询条件
     * @param page 查询页码
     * @param time 查询时间
     * @return 附件表数据
     */
    List<AtsAttachment> selectLookAll(@Param("userId")String userId,@Param("time") Time time,@Param("page")Pages page,@Param("atsAttachment")AtsAttachment atsAttachment);

    /**
     * 查询审核完成总行数
     * @param atsAttachment
     * @return
     */
    int selectLookCount(@Param("userId")String userId,@Param("atsAttachment") AtsAttachment atsAttachment,@Param("time") Time time);


}